#ifndef __LED_H__
#define __LED_H__

typedef enum {
    LED0=0,  // esp32c3 blue
    LED1,    // M1 led   
    LED2,    // M2 led   
    LED3,
    LED4,
    LED5,
    LED6
}led_t;

typedef enum {
    LED_ON=1,
    LED_OFF=0
}LED_STATE;

#define LED_NUM 7



/*************
 * bit 0: led 0  state
 * bit 1: led 1  state
 * bit 2: led 2  state
 * bit 3: led 3  state
 * ***************/
char get_all_led_state(void);




/**************
 * set led all by state
 *  
 * **************/
void set_led_state(char state);

void ledInit(void);
bool ledTest(void);
void ledSet(led_t led, LED_STATE value);
void led_toggle(led_t led);
void ledCtrolAll(LED_STATE value);

#endif
